<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录</title>
<link href="<?php echo $this->_webroot('/style/jq-ui/jquery-ui-1.8.18.custom.css'); ?>" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php echo $this->_webroot('style/register.css'); ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->_webroot('style/css.css'); ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->_webroot('style/content.css'); ?>" type="text/css" />
<script language="JavaScript">
<!--
function changImg(id){
document.getElementById(id).src ='<?php echo $this->_url('user/kcaptcha') .'?'; ?>'+Math.random(1);
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(){
	document.form_work.submit();
}
//-->
</SCRIPT>

<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-1.7.1.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('/script/jquery-ui-1.8.18.custom.min.js'); ?>"></script>
<script type="text/javascript">
jQuery(function(){
	$('.member_radio1').click(function(){
		$(this).addClass('member_check').siblings('.member_radio1').removeClass('member_check');
	});	
});
</script>
</head>

<body>

<psp:tags     htmlname='user_topnav'  iconname='usertopnav' />
    
    <div class="head">
    	<div class="logo_box1 logo_margin">
        	<a href="" class="logo_box1_a border_right"><img src="<?php echo $this->_webroot('images/logo1.gif'); ?>" alt="" /></a>
 <?php
    $cityid = $this->controller->C_session->read('_user_city_id');
	$cityname = '全国';
	if($cityid) {
        $this->controller->loadModel('area');
	    $array = $this->controller->area->find('first', array('conditions' =>array('area.id' =>$cityid )));
		if($array) {
		    $cityname = $array['area']['area_name'];
		}	    
	}	
?>   			
            <div class="exchangeArea2">
                <a href="#" ><span class="city_color1"><?php echo $cityname; ?></span><span class="divcityqiehuang fontDust" rel="<?php echo $this->_url('default/city/');?>">[更换城市]</span></a>
            </div>
<div id="div_city_qiehuang" style="display:none;left: 10px;position: relative;top: 50px;z-index: 1005;background-color: #666;padding: 10px;">
    <div  class="div_city_qiehuangClose"  style="cursor: pointer;position: absolute;right: 20px;top: 10px;"><img src="<?php echo $this->_webroot('images/loginDialogClose.jpg'); ?>"  /></div>
    <iframe  id="div_city_qiehuang1" width="965" height="786" style="border:1px solid #ccc;"></iframe>
</div>
<script>
jQuery(function($){
$(".divcityqiehuang").click(function(){
	var url = $(this).attr("rel");
	$("#div_city_qiehuang1").attr("src",url);	
	$("#div_city_qiehuang").dialog({width:1000,height:860,modal: true});
})
$(".div_city_qiehuangClose").click(function(){
    $("#div_city_qiehuang").dialog( "close" );
})
   }
)
</script>				
			
			
        </div>        
    </div>
    
    <div class="middle_nav">
    	<div class="middle_nav_content">
        	<span class="agreement_span">还没有爱搜货账号？<a href="<?php echo $this->_url('user/agreement'); ?>" class="click_register">点击此注册</a></span>
        </div>
    </div>
    
    <!-- container -->
    <div class="container">
    	<div class="login_left_wrap">
            <img src="<?php echo $this->_webroot('images/login_img.gif'); ?>" width="420" height="386" />            
        </div>
    	<div class="login_right_wrap">
        	<div class="login_right_content">
			<form method="post" action="<?php echo $this->_url('/user/login');?>" name="form_work">
		
            	<div class="step2_left_div">
                    <span class="login_left_span">用户名：</span><input type="text" name="data[user][username]" class="login_input" />
                </div>
                <div class="step2_left_div">
                    <span class="login_left_span">密&nbsp;&nbsp;&nbsp;码：</span><input type="password"  name="data[user][password]" class="login_input" />
                </div>
				<?php if ($msg) { ?>
            	<div class="step2_left_div">
                    <span class="login_left_span">&nbsp;</span><font color=red><?php echo $msg; ?></font>
                </div>	
				<?php } ?>
                <div class="step2_left_div">
                    <span class="login_left_span">验证码：</span><input type="text" name="data[user][captcha]" class="login_input1" /><span class="verification_span"><img src="<?php echo $this->_url('user/kcaptcha') .'?'. time(); ?>" id="cheimg" title="看不清，换一个" onClick="changImg('cheimg');" width="90" height='30' /><a href="#"  onClick="changImg('cheimg');" class="target_agreement">看不清楚</a></span>
                </div>
				<?php if ($invalidCaptcha) { ?>
            	<div class="step2_left_div">
                    <span class="login_left_span">&nbsp;</span><font color=red>验证码错误!</font>
                </div>	
				<?php } ?>
                <div class="memberCheck1">
                	<!--<label class="member_radio1 member_check"><input type="radio" checked="checked" class="mradio1" name="memberType" value="1" />买家</label><label class="member_radio1"><input type="radio" class="mradio1" name="memberType" value="2" />卖家</label>-->
					<a href="<?php echo $this->_url('/user/forgot');?>" class="forget_password">忘记密码</a>
                </div>
                <div class="step2_left_div">
                	<a href="<?php echo $this->_url('/user/login');?>" class="reset_btn">重新填写</a>
                    <a href="javascript:" class="login_btn1"  onclick="postdo()">登&nbsp;&nbsp;&nbsp;&nbsp;陆</a>
                </div>
			</form>	
            </div>
            
        </div>
        <div class="clear"></div>
    </div>
    <!-- container end -->    
    
    <psp:tags     htmlname='user_login_reg_footer'  iconname='user_login_reg_footer' />
    
</body>
</html>